package Work0513;

public class Roundness extends Diagram {

	public Roundness(double a) {
		super(a);

	}

	public void getLength() {
		double length = 2 * 3.14 * getA();
		System.out.println("该圆形形的周长为" + length);
	}

	public void getArea() {
		double area = 3.14 * getA() * getA();
		System.out.printf("该圆形的面积为:" + "%.2f", area);
	}

}
